<?php

include '../config/config.php';
include 'Zend/Db.php';  

$db = Zend_Db::factory('Pdo_Mysql', $dbConfig);
	
	$list = '';
	$mresult = $db->fetchAll("SELECT module_id, module_title FROM modules");
	foreach ($mresult as $mrow) {
		$list .= '<option id="modpick" value="'.$mrow['module_id'].'">'.$mrow['module_title'].'</option>';
	}

echo $list;

?>